package com.victualler.core.config.permission.repository;


import com.victualler.core.base.repository.IBaseQueryRepository;
import com.victualler.core.config.permission.entity.RoleInfoDao;

import java.util.List;


/**
 * @author Guoshichang
 * @function 封装用于复杂sql查询的API. 为每个实体的repository层提供便利操作
 */
public interface RoleInfoQueryRepository extends IBaseQueryRepository<RoleInfoDao,Long> {
    /**
     * @author Guoshichang   
     * @since 20:17 on 2018/7/5.
     * @param userId 用户id
     * @Function  获取用户id对应的角色列表
     */
    public List<RoleInfoDao> getRoleInfoByUserId(Long userId);

    /**
     * @author Guoshichang
     * @since 21:12 on 2018/9/9.
     * @param userId 双
     * @return List
     * @Function
     */
    public List<RoleInfoDao> notInByUserId(Long userId);
}
